﻿var kaurl = 'login.ivp/keepalive'; //URL for keep alive
var maxcnt = 200; //How many requests to keep alive
var kainterval = 600 * 1000; //Keep alive interval, MSec (1000 = 1 sec.)
var kacnt = 0; //How many requests were already made
$(function() { setInterval(keepAlive, kainterval); });
function keepAlive() { kacnt++;if (kacnt < maxcnt) $.get($('base').attr('href') + kaurl, { date: new Date() }); }